package com.cman777.springc.common.bean.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * @author chenzhicong
 * @time 2019/10/14 21:15
 * @description
 */
@Getter
@Setter
public class BasePageRequest extends BaseRequest {
    @ApiModelProperty(value = "分页查询的页码，从1开始计数,0表示查全部", name = "pageNum", example = "1", required = true)
    @NotNull
    private Integer pageNum;

    @ApiModelProperty(value = "分页查询的每页条数，0表示查全部", name = "pageSize", example = "10", required = true)
    @NotNull
    private Integer pageSize;
}
